// vue.config.js
module.exports = {
  devServer: {
    port: 8086, //npm run serve 本App 运行的端口
    proxy: {
      '/apis': {
        target: 'http://192.168.1.114:8181/',  // 目标地址 http:// 是必须的
        ws: true,  // proxy websockets
        changeOrigin: true,  // needed for virtual hosted sites
        pathRewrite: {
          '^/apis': ''  // rewrite path
        }
      },
    }
  }
};
